package top.boycharse.ftp;

import java.io.*;
import java.util.Scanner;
import java.util.function.Consumer;

public class Test {

    public static void main(String[] args) {
        File file = new File("vue.js");
        System.out.println(file.getName());
        System.out.println(file.exists());
        System.out.println(file.isFile());
        try {
            file.createNewFile();
        } catch (IOException e) {
            e.printStackTrace();
        }

        Scanner scanner = new Scanner(System.in);
        scanner.nextLine();
        File file1 = new File("abc");
        System.out.println(file1.getName());

        File file2 = new File("/wangyuyong/java");
        System.out.println(file2.getName());
    }
}
